import numpy as np


class Matrix:
    def __init__(self,rows,cols,list):
        self.rows=rows
        self.cols=cols
        self.list=list
    def matrix_transposition(self):
        return np.array(self.list).T.tolist()
    #得到矩阵的秩
    def matrix_rank(self):
        return np.linalg.matrix_rank(self.list)




if __name__=="__main__":
    list=[[1,2,3],[4,5,6]]
    a=Matrix(2,3,list)
    print(a.matrix_transposition())
    
    











